<?php
/**
 * @author Jumper
 * date: 2021/04/15
 */
namespace App;

use Hyperf\Logger\Logger;
use Hyperf\Utils\ApplicationContext;

class Log
{
    public static function get(string $name = 'app')
    {
        return ApplicationContext::getContainer()->get(\Hyperf\Logger\LoggerFactory::class)->get($name);
    }

    public static function __callStatic($method, $arguments)
    {
        return call_user_func_array([self::get(), $method], $arguments);
    }
}